package city.spring.modules.cardinfo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.Date;

/**
 * 实体类：pos餐次时段金额
 *
 * @author panxm
 * @date 2020-05-21 11:02:17
 */
@Data
@TableName("card_meal_time_money")
public class CardMealTimeMoneyEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 餐次名称
     */
    private String name;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "HH:mm")
    private LocalTime start;

    /**
     * 结束时间
     */

    @JsonFormat(pattern = "HH:mm")
    private LocalTime end;

    /**
     * 定额金额
     */
    private BigDecimal money;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtModified;

}